<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="admin.*" %>
<%@ page import="phan.connection.*" %>
<%@ page language="Java" import="java.sql.Connection" %>
<%@ page language="Java" import="java.sql.Statement" %>
<%@ page language="Java" import="java.sql.* " %>
 <%@ taglib uri="/alveole-struts2" prefix="s" %>
<jsp:useBean id="admin" class="admin.WriteFile" scope="request"/>
<jsp:useBean id="formHandler" class="phan.connection.InscriptionBean" scope="request"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>INSCRIPTION SUCCESS</title>
        <link href="CSSMain/lostobjet.css" rel="stylesheet" type="text/css" />
        <link href="CSSMain/header_button.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="../PHAN/CSSMain/ddsmoothmenu.css" />
        <link rel="stylesheet" type="text/css" href="../PHAN/CSSMain/ddsmoothmenu-v.css" />
        <script type="text/javascript" src="../PHAN/CSSMain/jquery-1.3.2.min.js"></script>

        <%WriteFile w = new WriteFile();

        %>

        <style type="text/css">
            <!--
            div.back {
                width:inherit;
                background: #576;
            }
            div.section {
                background: #ffd;
                width:inherit;
            }
            div.back {padding: 0.2em}
            div.section {margin: -2em 0.2em 0 -0.3em}

            -->
        </style>

<%

    int RoleID=-1;



    if(session.getAttribute("UserRoleID")!=null)
        {
            if(session.getAttribute("UserRoleID").equals("1"))
                RoleID=1;
            if(session.getAttribute("UserRoleID").equals("2"))
                RoleID=2;
        }


%>
    </head>

    <body>

        <div id="Header"><img src="images/LOGObanner.gif" usemap="#Map" border="0"/>             <map name="Map" id="Map" >   <area shape="circle" alt="" coords="65,51,52" href="../PHAN/Accueil.jsp" />         </map></div>




        <div id="Menu">
            <div id="smoothmenu1" class="ddsmoothmenu">

                <ul>
                    <li><a href="Accueil.jsp">Accueil</a></li>
                    <li><a href="Login.jsp">Déjà Membre</a></li>
                    <li><a href="ContactNous.jsp">Nous Contacter</a></li>
                </ul>
            </div>
        </div>

        <div id="Page">

            <div id="cot_trai">

                <div  id="content">
                   <div class="infos">
                       <span>

                        <div class="boxed">
                        <h2 class="title">INSCRIPTION AVEC SUCCESS</h2>
                        
                        </div>


                        <br>
                        <tr><font size=3 color="#0080FF">VOUS AVEZ FAIT UNE INSCRIPTION AVEC SUCCESS!</font><hr size="2" width="100%" style="background:olive"> </tr>

                              <font color="#003399">
                                <b>Nom: </b><jsp:getProperty name="formHandler" property="nom"/>
                                <br/><br/>


                                <b>Prenom: </b>  <jsp:getProperty name="formHandler" property="prenom"/>
                                <br/><br/>

                                <b>E-Mail: </b>  <jsp:getProperty name="formHandler" property="email"/>
                                <br/><br>

                                <b>Adresse: </b> <jsp:getProperty name="formHandler" property="adress"/>
                                <br/><br/>

                                <b>Ville: </b>   <jsp:getProperty name="formHandler" property="ville"/>
                                <br/><br/>

                                <b>Code Postal: </b>  <jsp:getProperty name="formHandler" property="postal"/>
                                <br/><br/>

                                <b>Pseudo: </b><jsp:getProperty name="formHandler" property="login"/>
                                <br/><br/>
                                <b>Vous avez lu et accepté les conditions: </b>

                                <jsp:getProperty name="formHandler" property="notify"/>
                                </font>
                                <br>

                            <font style="font-weight:bold; font-family:Georgia;font-size:10pt;"   color="#000000" >
                                   <blockquote>
                                     <font style="font-weight:bold; font-family:Georgia;color:#0065CA"><p align="justify">Votre inscription a été enregistré avec succès.
                                          Un email a été envoyé à votre messagerie. Pour la valider, vous devrez  cliquer sur le lien
                                          pour activer votre compte. Ensuite, saisir vos pseudo et password pour ouvrir une session.</p></font>
                                    </blockquote>
                                </font>


                                <font  size="3" color="#0080FF">
                                    <p align="left">Où souhaitez-vous aller maintenant ?
                                        <div align="left"><ul style="margin-left:20px">
                                                <li><a href="MainAccueil.jsp">Page Accueil</a></li>
                                    <li><a href="Login.jsp">Page Login</a></li></ul></div></p>
                                </font>
                      </span> 
                   </div>

                </div>




            </div>


            <div id="cot_phai">
                <div id="content_cot_phai">

                    <%
        if (RoleID==-1){
             out.print("<div class=\"infos\">");

            out.print("<h2>S'identifier</h2>");

            out.print("<form id=\"form1\" method=\"post\" action=\"LoginProcess.jsp\">");
            out.print("<table border=\"0\">");
            out.print("<tr>");
            out.print("<td><label for=\"inputtext2\">Pseudo:</label></td>");
            out.print("<td><input size=\"15\" type=\"text\" name=\"user\" value=\"\" /></td>");
            out.print("</tr>");
            out.print("<tr>");
            out.print("<td><label for=\"inputtext2\">Password:</label></td>");
            out.print("<td><input size=\"15\" type=\"password\" name=\"pass\" value=\"\" /></td>");
            out.print("</tr>");
            out.print("<tr>");
            out.print("<td colspan=\"2\"><input type=\"submit\"  value=\"Ouvrir\" border=\"1\" />");
            out.print("</td>");
            out.print("</tr>");
            out.print("<tr>");
            out.print("<td colspan=\"2\"><a href=\"OublierLogin.jsp\">J'ai oublié mon pseudo</a><br/>");
            out.print("<a href=\"OublierLogin.jsp\">J'ai oublié mon password</a>");
            out.print("<br/>");
            out.print("<a href=\"Inscription.jsp\">Inscrivez vous</a></td>");
            out.print("</tr>");
            out.print("</table>");
            out.print("</form>");
            out.print("</div>");
        }

        if(RoleID==1){

                    out.print("<div class=\"infos\">");
                    out.print("<h3>Paramètres</h3>");
                    out.print("<p class=\"para\"><a href=\"../PHAN/fermession.jsp\">Déconnexion</a><br/>");
                    out.print("<a href=\"../PHAN/ModifierMotDePass.jsp\">Modifier le password</a><br/>");
                    out.print("<a href=\"../PHAN/ModifierCoordonnees.jsp\">Modifier les coordonnées</a><br/>");
                    out.print("</p>");
                    out.print("</div>");
        }

        if(RoleID==2){
                    out.print("<div class=\"infos\">");
                    out.print("<h3>Paramètres</h3>");
                    out.print("<p class=\"para\"><a href=\"../PHAN/fermession.jsp\">Déconnexion</a><br/>");
                    out.print("<a href=\"../PHAN/ModifierMotDePass.jsp\">Modifier le password</a><br/>");
                    out.print("<a href=\"../PHAN/ModifierCoordonnees.jsp\">Modifier les coordonnées</a><br/>");
                    out.print("</p>");
                    out.print("<div class=\"buttonwrapper\" style=\"padding-left:25px;padding-bottom:10px\">");
                    out.print("<a class=\"squarebutton\" href=\"../VerifierObjetABN/AjouterElementNewCompte.jsp\">");
                    out.print("<span>Nouveau Compte</span></a>");
                    out.print("</div>");
                    out.print("</div>");
        }
                    %>
                </div>
            </div>

           

            <div id="footer_menu">

                <ul>
                    <li><a href="Accueil.jsp">Accueil</a></li>
                    <li><a href="Login.jsp">Déjà Membre</a></li>
                    <li><a href="ContactNous.jsp">Nous Contacter</a></li>
                </ul>
            </div>
            <p id="copyright">
            <a href="http://www.lostobjet.fr">Copyright &copy; 2009 lostobjet.fr</a>


		</p>
        </div>



        <div id="Header_button">
            <div class="buttonwrapper">
                <%

                 if(RoleID==-1){
                         out.print("<a class=\"squarebutton\" href=\"../PHAN/Inscription.jsp\">");
                         out.print("<span>S'inscrire</span></a>");
                         out.print("<a class=\"squarebutton\" href=\"../PHAN/Login.jsp\">");
                         out.print("<span>Vérifier Objet</span></a>");
                         out.print("<a class=\"squarebutton\" href=\"../PHAN/Login.jsp\" style=\"margin-left:25px\">");
                         out.print("<span>Enregistrer Objet</span></a>");}

                if(RoleID==1){
                         out.print("<a class=\"squarebutton\" href=\"../PHAN/Inscription.jsp\">");
                         out.print("<span>S'inscrire</span></a>");
                         out.print("<a class=\"squarebutton\" href=\"../PHAN/RechercheObjet.jsp\">");
                         out.print("<span>Vérifier Objet</span></a>");
                         out.print("<a class=\"squarebutton\" href=\"../VerifierObjetVST/AjouterElementVST.jsp\" style=\"margin-left:25px\">");
                         out.print("<span>Enregistrer Objet</span></a>");}

                if(RoleID==2){
                         out.print("<a class=\"squarebutton\" href=\"../PHAN/Inscription.jsp\">");
                         out.print("<span>S'inscrire</span></a>");
                         out.print("<a class=\"squarebutton\" href=\"../PHAN/RechercheObjet.jsp\">");
                         out.print("<span>Vérifier Objet</span></a>");
                         out.print("<a class=\"squarebutton\" href=\"../VerifierObjetABN/AjouterElementABN.jsp\" style=\"margin-left:25px\">");
                         out.print("<span>Enregistrer Objet</span></a>");}

             %>
            </div>
        </div>

    </body>
</html>

